﻿using Autofac;
using Nop.Core.Infrastructure;
using Nop.Core.Infrastructure.DependencyManagement;
using Nop.Plugin.Payments.PayPalHosted.Services;

namespace Nop.Plugin.Payments.PayPalHosted
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        public void Register(ContainerBuilder builder, ITypeFinder typeFinder)
        {
            builder.RegisterType<PayPalCurrencyCodeParser>().As<IPayPalCurrencyCodeParser>();
            builder.RegisterType<PayPalHostedService>().As<IPayPalHostedService>();
            builder.RegisterType<PayPalInterfaceService>().As<IPayPalInterfaceService>();
            builder.RegisterType<PayPalIPNService>().As<IPayPalIPNService>();
            builder.RegisterType<PayPalRecurringPaymentsService>().As<IPayPalRecurringPaymentsService>();
            builder.RegisterType<PayPalRequestService>().As<IPayPalRequestService>();
        }

        public int Order { get { return 99; } }
    }
}